package com.jeeplus.test.sysTemplate.domain;

import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class SysTemplateTreeNode {

    private Integer id;
    private String templateName;
    private String managementModel;
    private String sysSettings;
    private String introduce;
    private String remarks;
    private String delState;
    private String officeId;
    private String createUser;
    private Date createTime;
    private Date updateTime;
    private String hierar;
    private String father;
    private String isChoose;
    private List<SysTemplateTreeNode> children;

    // 转换构造函数
    public SysTemplateTreeNode(SysTemplateInfo info) {
        this.id = info.getId();
        this.templateName = info.getTemplateName();
        this.managementModel = info.getManagementModel();
        this.sysSettings = info.getSysSettings();
        this.introduce = info.getIntroduce();
        this.remarks = info.getRemarks();
        this.delState = info.getDelState();
        this.officeId = info.getOfficeId();
        this.createUser = info.getCreateUser();
        this.createTime = info.getCreateTime();
        this.updateTime = info.getUpdateTime();
        this.hierar = info.getHierar();
        this.father = info.getFather();
        this.isChoose = info.getIsChoose();
        this.children = new ArrayList<>();
    }
}
